import 'normalize.css/normalize.css' //优化css可用性
import Vue from 'vue'
import App from './App.vue'
// import router from './router'
import store from './store'

// element
// import ElementUI from 'element-ui'
// Vue.use(ElementUI);
// import 'element-ui/lib/theme-chalk/index.css'//主题--蓝色

import globalVariable from './common/global_variable.js.js'//全局变量
import './assets/styles/index.scss'

import router from './router/routers'
import './router/index' // permission control

import filter from './common/filter.js' //全局过滤

import base from './common/base.js' //全局函数

import rem from './common/rem.js' //px 转换为rem

// vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

Vue.prototype.GLOBAL = globalVariable; //全局变量

Vue.prototype.bus = new Vue();

Vue.use(base);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app') //手动挂载到id为app的dom中的意思
